import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:finance_app/generated/a.dart';

class SubscriptionDueBanner extends StatelessWidget {
  final String message;

  const SubscriptionDueBanner({Key key, this.message}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: aceRedColor,
      padding: EdgeInsets.symmetric(horizontal: getDp(20), vertical: getDp(7)),
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          SvgPicture.asset(
            A.assetsImagesSettingInfo,
            width: getDp(30),
            height: getDp(30),
          ),
          SizedBox(
            width: getDp(17),
          ),
          Expanded(
            child: Text(
              message,
              style: TextStyle(
                color: Colors.white,
                fontSize: getSp(14),
                fontWeight: FontWeight.w700,
                height: 22 / 14,
              ),
            ),
          ),
          SizedBox(
            width: getDp(3),
          ),
          SvgPicture.asset(
            A.assetsImagesSettingWhileRight,
            width: getDp(13),
            height: getDp(18),
          ),
        ],
      ),
    );
  }
}
